﻿@model ArunimaErp.Domain.shipmentinfo

@{
    ViewBag.Title = "Create";

    Layout = null;
}

<script type="text/javascript">
    $(document).ready(function () {
        $('.dateTimePicker').datepicker({ dateFormat: "dd-M-yy" });
    });
</script>

@using (Ajax.BeginForm("Create", "Shipment", new AjaxOptions
		{
			InsertionMode = InsertionMode.Replace, 
			HttpMethod = "POST",
            OnSuccess = "shipmentSuccess"
        }, new { @id = "shipmentDialogeForm" }))
	{
    @Html.ValidationSummary(true)

    @Html.Hidden("PoStyleId", (object)ViewBag.PoStyleId)

    <fieldset>
        <legend>shipmentinfo</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.Quantity)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Quantity)
            @Html.ValidationMessageFor(model => model.Quantity)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Date)
        </div>
        <div class="editor-field">
            @Html.TextBox("Date", DateTime.Now.ToString("dd-MMM-yyy"), new { @class = "dateTimePicker", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Date)
        </div>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index", new { id = ViewBag.PoStyleId }, new { @class = "shipmentIndex" })
</div>
